package com.zifan.sever.mapper;

import com.zifan.sever.bean.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zifan
 * @since 2021-04-10
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户来判断该用户的所有角色
     * @param id
     * @return
     */
    List<Role> getRolesByAdminId(Integer id);
}
